import request from "@/utils/request.js"
// 短信验证码
export function getSmsCode(data) {
    return request.Request({
        url: '/auth/login/sendSms',
        method: 'POST',
        data
    });
}
// 获取省
export function getProvince(data) {
    return request.Request({
        url: '/base/t-com-gov-info/provinceList',
        method: 'GET',
        data
    });
}
// 根据省获取学校
export function getSchoolByPro(data) {
    return request.Request({
        url: '/data-core/baseSchool/pageBaseSchool',
        method: 'POST',
        data
    });
}
// 根据学校获取学院
export function getCollegeBySch(data) {
    return request.Request({
        url: '/base/t-base-college/queryCollege',
        method: 'POST',
        data
    });
}
// 根据学院获取专业
export function getMajorByColl(data) {
    return request.Request({
        url: '/base/t-base-college/queryMajor',
        method: 'POST',
        data
    });
}
// 学科列表
export function getSubject(data) {
    return request.Request({
        url: '/data-core/subject/list',
        method: 'POST',
        data
    });
}
// 根据学科获取专业
export function getMajorBySubject(data) {
    return request.Request({
        url: '/data-core/major/getMajor',
        method: 'POST',
        data
    });
}
// 根据选择的学科专业去获取学校及专业
export function getSchoolBySubject(data) {
    return request.Request({
        url: '/data-core/contrast/contrast/'+data.majorCode,
        method: 'GET',
    });
}
// 用户的关注、取消
export function focusUser(data) {
    return request.Request({
        url: '/kwkd/Fans/addOrCancel',
        method: 'POST',
        data
    });
}
// 用户的关注状态
export function userFocusStatus(data) {
    return request.Request({
        url: '/kwkd/Fans/isLikeUser',
        method: 'GET',
        data
    });
}

// 获取app版本
export function getAppVersion(data) {
    return request.Request({
        url: '/kwkd/app/public/maxVersion',
        method: 'GET',
        data
    });
}
// 分区
export function getSubjectCategory(data) {
    return request.Request({
        url: '/data-core/subject/list',
        method: 'POST',
        data
    });
}
//点赞、取消点赞
export function likeOrNot(data) {
    return request.Request({
        url: '/kwkd/commonLike/add',
        method: 'POST',
        data
    });
}
// 注销用户
export function delAccount(data) {
    return request.Request({
        url: '/kwkd/personal/logoutCurrentUser',
        method: 'DELETE',
        data
    });
}
// 获取订单信息
export function getOrderInfo(data) {
    return request.Request({
        url: '/kwkd/pay',
        method: 'POST',
        data
    });
}

// 加入对比库
export function addMyContrast(data) {
    return request.Request({
        url: '/data-core/contrast/addMyContrast',
        method: 'POST',
        data
    });
}

//获取会员套餐
export function ApimemberPrice(data) {
    return request.Request({
        url: '/pay/goods/queryCard',
        method: 'GET',
    });
}
// 用户使用激活码
export function useActivationCode(data) {
    return request.Request({
        url: '/pay/activation/useActivationCode',
        method: 'POST',
		data
    });
}
// 邀请（分享）
export function inviteShare(data) {
    return request.Request({
        url: '/kwkd/invite/diagram',
        method: 'POST',
		data
    });
}
// 登录状态下的绑定用户
export function bindUser(data) {
    return request.Request({
        url: '/pay/extension/save',
        method: 'POST',
		data
    });
}